package cn.songtx.iot.pojo;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysUserFamily {
    private Long id;                              // 主键
    private Long userId;                          // 逻辑外键,SysUser的id
    private Long familyId;                        // 逻辑外键,SysFamily的id
    private LocalDateTime createTime;             // 创建时间
    @TableLogic(value = "0", delval = "1")        // 逻辑删除注解,value可缺省
    private boolean isDeleted;                    // 建表时需要有默认值0
}
